﻿package org.ilanchong.droidcontroller;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;


import org.ilanchong.droidcontroller.R;

public class DroidControllerActivity extends Activity {
	private ImageView mStartView;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        /*android:theme="@android:style/Theme.NoTitleBar.Fullscreen"*/
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
        
        mStartView = (ImageView) findViewById(R.id.start_image);
        mStartView.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				gotoNewControlUI();
			}
        	
        });
    }
    
    
    private void gotoNewControlUI() {
		// TODO Auto-generated method stub
    	Log.i("", "gotNewControlUI");
		startActivity(new Intent(DroidControllerActivity.this, SearchingActivity.class));
		finish();
	}
}